Use gtk_window_has_group() to know if the window has an explicit window group.
authorJavier Jardón <jjardon@gnome.org>
Tue, 24 Aug 2010 14:10:38 +0000 (16:10 +0200)
committerJavier Jardón <jjardon@gnome.org>
Tue, 24 Aug 2010 14:16:42 +0000 (16:16 +0200)
commitc05f344c0a5c7bd1096dd7bd10c99a0e585826d2
treeeaded4d0360099f7c2882cd346d0d2f848136c84
parent891694d9ffae1c8e949cfb3fb39d726ad30ca4f4
Use gtk_window_has_group() to know if the window has an explicit window group.

gtk_window_get_group() never returns NULL; if the window isn't in a group,
a default window group is returned instead. Use gtk_window_has_group() instead.
This fixes some previous commits to use accessors to access GtkWindow.

Reported by Philip Withnall in bug
https://bugzilla.gnome.org/show_bug.cgi?id=627828
gtk/gtkcolorsel.c
gtk/gtkdnd.c
gtk/gtkfilechooserdefault.c
gtk/gtkprintoperation.c
gtk/gtkprintunixdialog.c
gtk/gtkrecentchooserdefault.c
gtk/gtktreeview.c